package com.cloudkinto.service.company.vo;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class InventoryQueryResponse {
    private boolean success = false;

    private Integer errorCode;

    private String errorMsg;

    private Integer serverTime = Math.toIntExact(DateUtil.currentSeconds());

    Result result;

    @Data
    public static class Result {
        public Map<String, List<InventoryInfo>> inventoryInfoMap;

        public Result() {
        }

        public Result(Map<String, List<InventoryInfo>> inventoryInfoMap) {
            this.inventoryInfoMap = inventoryInfoMap;
        }
    }

    public InventoryQueryResponse() {
    }


    public InventoryQueryResponse(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
